
import { createApp } from "vue";
import App from "./App.vue";
import router from './router/index'
// import './permission'

//中英文切换
import i18n from '@/locales/index';
//pina
import { createPinia } from 'pinia';
// 创建 Pinia 实例
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)

import '@/assets/css/hhg-common.scss';
import '@/assets/css/hhg-layout.scss';
import '@/assets/css/hhg-componentStyle.scss';

//富文本
import VueUeditorWrap from 'vue-ueditor-wrap';

// // main.js(引入并初始化mock)
const { mockXHR } = require('../mock')
mockXHR()

import {setupAntd} from './plugins/ant'
const app = createApp(App)
// 使用 Pinia
app.use(pinia);

app.use(router);
app.use(i18n);
setupAntd(app);
app.use(VueUeditorWrap);
app.mount("#app");

